package Animal_And_Interface;

public class Bird extends Animal implements IRunning, IFlying{
    public Bird(String name){
        super(name);
    }
    @Override
    public void fly(){
        System.out.println(this.name + "正在飞！");
    }

    @Override
    public void run() {
        System.out.println(this.name + "正在用鸟腿跑！");
    }
}
